package com.woniuxy.microcurrentserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microcurrentserver.entity.CurrentFundAll;
import com.woniuxy.microcurrentserver.entity.CurrentFundHistory;
import com.woniuxy.microcurrentserver.entity.CurrentFundInfo;

import java.util.List;

/**
 * (CurrentFundAll)表服务接口
 *
 * @author makejava
 * @since 2021-04-08 11:29:25
 */
public interface CurrentFundAllService {





    /**
     * Description : 通过基金类型查询
     * ChangeLog : 1. 创建 (2021/4/8 11:36 [Lenovo]);
     * @param page
     * @return java.util.List<com.woniuxy.microcurrentserver.entity.CurrentFundAll>
     **/
    PageInfo<CurrentFundAll> selectAllByType(Integer page,String name);

    /**
     * Description : 新增基金数据
     * ChangeLog : 1. 创建 (2021/4/8 11:59 [Lenovo]);
     *
     * @return boolean
     **/
    boolean insertAll(List<CurrentFundAll> list);

    /**
     * class: 
     * create by: 陈酒
     * description:添加活期基金信息
     * create time: 2021/4/17
     *
     * @param:a
     */
    boolean insertInfo(CurrentFundInfo data, List<CurrentFundHistory> millionCopiesIncome, List<CurrentFundHistory> sevenDaysYearIncome);

    /**
     * class: 
     * create by: 陈酒
     * description:
     * create time: 2021/4/17
     *
     * @param:a
     */
    boolean updateAll();

    boolean checkCode(String code);
}
